package top.yuhaitao.cloud.feign;

import org.springframework.cloud.netflix.feign.FeignClient;

import feign.Param;
import feign.RequestLine;
import top.yuhaitao.cloud.entity.User;
import top.yuhaitao.config.FeignConfig;

@FeignClient(name = "springboot-cloud-provider-user", configuration = FeignConfig.class)
public interface UserFeignClient {

	//暂时不支持这种形式
	@RequestLine("GET /getUserById")
	public User getUserById(@Param("id") Long id);

	@RequestLine("GET /getUserById2/{id}")
	public User getUserById2(@Param("id") Long id);

}
